package org.zero.model;

import java.io.Serializable;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author Zero (cnzeropro@qq.com)
 * @date 2021/9/13 10:10
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class R<T> implements Serializable {
    private static final long serialVersionUID = 59482888178895255L;

    /**
     * HTTP状态码
     */
    private Integer code;

    /**
     * 用户提示信息
     */
    private String message;

    /**
     * 错误码
     */
    private String errorCode;

    /**
     * 错误消息
     */
    private String errorMessage;

    /**
     * 响应数据
     */
    private T data;
}
